<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="/struts-tags" prefix="s"%>

<s:if test="cart.logged == true">
	<table width="150" class="framed" align="center" cellspacing="2"
		cellpadding="2" border="0">
		<s:if test="cart.admin == false">
			<tr>
				<td><a href="<s:url namespace="/" action="calendar"/>"> <img
					src="<s:url value="/images/dot.gif"/>" alt="" /> <s:text name="menu.calendar" />
				</a></td>
			</tr>
			<tr>
				<td><a href="<s:url namespace="/" action="catalog"/>"> <img
					src="<s:url value="/images/dot.gif"/>" alt="" /> <s:text name="menu.catalog" />
				</a></td>
			</tr>
			<tr>
				<td><a href="<s:url namespace="/" action="checkout"/>"> <img
					src="<s:url value="/images/dot.gif"/>" alt="" /> <s:text name="menu.checkout" />
				</a></td>
			</tr>
		</s:if>
		<s:else>
			<tr>
				<td><a href="<s:url namespace="/user" action="list_all"/>">
				<img src="<s:url value="/images/dot.gif"/>" alt="" /> <s:text name="menu.user" />
				</a></td>
			</tr>

			<tr>
				<td><a href="<s:url namespace="/product" action="list_all"/>">
			    <img src="<s:url value="/images/dot.gif"/>" alt="" /> <s:text name="menu.product" />
				</a></td>
			</tr>

			<tr>
				<td><a href="<s:url namespace="/vendor" action="list_all"/>">
				<img src="<s:url value="/images/dot.gif"/>" alt="" /> <s:text name="menu.vendor" />
				</a></td>
			</tr>

		</s:else>
		<s:if test="#session['cms']!='on'">
			<tr>
				<td><a href="<c:url value="/logout.action"/>"> <img
					src="<s:url value="/images/dot.gif"/>" alt="" /> <s:text name="menu.logout" />
				</a></td>
			</tr>
		</s:if>
	</table>
</s:if>
